package com.caisejingyu.whales.home.ui

import android.app.Activity
import android.os.Bundle
import android.support.v4.content.ContextCompat
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.caisejingyu.whales.common.BaseApplication

import com.caisejingyu.whales.home.R
import com.caisejingyu.whales.home.common.BitmapUtil


class CombineTestActivity : Activity() {

    lateinit var img: ImageView
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.test_activity_combine)

        img = findViewById(R.id.img)

        val bitmap = BitmapUtil.toConformBitmap(
                ContextCompat.getDrawable(BaseApplication.getAppContext(), R.drawable.demo),
                ContextCompat.getDrawable(BaseApplication.getAppContext(), R.drawable.fore_1)
        )
        Glide.with(this).load(bitmap).into(img)
    }
}
